/*
 * An XML document type.
 * Localname: getAllArrivals
 * Namespace: http://xscraper.openjawtech.com/ws/xsd
 * Java type: com.openjawtech.xscraper.ws.xsd.GetAllArrivalsDocument
 *
 * Automatically generated - do not modify.
 */
package com.openjawtech.xscraper.ws.xsd.impl;
/**
 * A document containing one getAllArrivals(@http://xscraper.openjawtech.com/ws/xsd) element.
 *
 * This is a complex type.
 */
public class GetAllArrivalsDocumentImpl_1 extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements com.openjawtech.xscraper.ws.xsd.GetAllArrivalsDocument
{
    
    public GetAllArrivalsDocumentImpl_1(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName GETALLARRIVALS$0 = 
        new javax.xml.namespace.QName("http://xscraper.openjawtech.com/ws/xsd", "getAllArrivals");
    
    
    /**
     * Gets the "getAllArrivals" element
     */
    public com.openjawtech.xscraper.ws.xsd.GetAllArrivalsDocument.GetAllArrivals getGetAllArrivals()
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.openjawtech.xscraper.ws.xsd.GetAllArrivalsDocument.GetAllArrivals target = null;
            target = (com.openjawtech.xscraper.ws.xsd.GetAllArrivalsDocument.GetAllArrivals)get_store().find_element_user(GETALLARRIVALS$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "getAllArrivals" element
     */
    public void setGetAllArrivals(com.openjawtech.xscraper.ws.xsd.GetAllArrivalsDocument.GetAllArrivals getAllArrivals)
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.openjawtech.xscraper.ws.xsd.GetAllArrivalsDocument.GetAllArrivals target = null;
            target = (com.openjawtech.xscraper.ws.xsd.GetAllArrivalsDocument.GetAllArrivals)get_store().find_element_user(GETALLARRIVALS$0, 0);
            if (target == null)
            {
                target = (com.openjawtech.xscraper.ws.xsd.GetAllArrivalsDocument.GetAllArrivals)get_store().add_element_user(GETALLARRIVALS$0);
            }
            target.set(getAllArrivals);
        }
    }
    
    /**
     * Appends and returns a new empty "getAllArrivals" element
     */
    public com.openjawtech.xscraper.ws.xsd.GetAllArrivalsDocument.GetAllArrivals addNewGetAllArrivals()
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.openjawtech.xscraper.ws.xsd.GetAllArrivalsDocument.GetAllArrivals target = null;
            target = (com.openjawtech.xscraper.ws.xsd.GetAllArrivalsDocument.GetAllArrivals)get_store().add_element_user(GETALLARRIVALS$0);
            return target;
        }
    }
    /**
     * An XML getAllArrivals(@http://xscraper.openjawtech.com/ws/xsd).
     *
     * This is a complex type.
     */
    public static class GetAllArrivalsImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements com.openjawtech.xscraper.ws.xsd.GetAllArrivalsDocument.GetAllArrivals
    {
        
        public GetAllArrivalsImpl(org.apache.xmlbeans.SchemaType sType)
        {
            super(sType);
        }
        
        private static final javax.xml.namespace.QName DEPARTURE$0 = 
            new javax.xml.namespace.QName("http://xscraper.openjawtech.com/ws/xsd", "departure");
        
        
        /**
         * Gets the "departure" element
         */
        public java.lang.String getDeparture()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DEPARTURE$0, 0);
                if (target == null)
                {
                    return null;
                }
                return target.getStringValue();
            }
        }
        
        /**
         * Gets (as xml) the "departure" element
         */
        public org.apache.xmlbeans.XmlString xgetDeparture()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(DEPARTURE$0, 0);
                return target;
            }
        }
        
        /**
         * Sets the "departure" element
         */
        public void setDeparture(java.lang.String departure)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DEPARTURE$0, 0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(DEPARTURE$0);
                }
                target.setStringValue(departure);
            }
        }
        
        /**
         * Sets (as xml) the "departure" element
         */
        public void xsetDeparture(org.apache.xmlbeans.XmlString departure)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(DEPARTURE$0, 0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(DEPARTURE$0);
                }
                target.set(departure);
            }
        }
    }
}
